package com.hkemmm.shop.service.impl;

import com.hkemmm.shop.dao.Order_detailMapper;
import com.hkemmm.shop.entity.Order_detail;
import com.hkemmm.shop.service.IOrder_DetailService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class Order_DetailService implements IOrder_DetailService {
    @Autowired
    private Order_detailMapper orderDetailMapper;

    @Override
    public int updateStatus(Integer id, Integer status) {
        return orderDetailMapper.updateStatus(id, status);
    }

    @Override
    public List<Order_detail> selectByOrderId(Integer oid) {
        return orderDetailMapper.selectByOrderId(oid);
    }
}
